import request from '@/utils/requestPro';


/**
 * 查询----退款订单分页列表
 * @param params
 */
export function getListAllApi(params) {
	return request({
		url: '/admin/merchant/refund/order/list',
		method: 'get',
		params,
	});
}

/**
 * 查询----退款订单详情
 * @param params
 */
export function getOrderDetailApi(orderNo) {
	return request({
		url: `/admin/merchant/order/info/${orderNo}`,
		method: 'get',
	});
}

/**
 * 查询----退款订单详情(2)
 * @param params
 */
export function getRefundOrderDetailApi(refundOrderNo) {
	return request({
		url: `/admin/merchant/refund/order/detail/${refundOrderNo}`,
		method: 'get',
	});
}

/**
 * 订单退款处理
 * @param params
 */
export function refundOrderApi(params) {
	return request({
		url: '/admin/merchant/refund/order/refund',
		method: 'get',
		params,
	});
}

/**
 * 订单备注
 * @param data
 */
export function markRefundNoteApi(data) {
	return request({
		url: '/admin/merchant/refund/order/mark',
		method: 'post',
		data,
	});
}

/**
 * 订单--拒绝退款
 * @param params
 */
export function refuseRefundOrderApi(params) {
	return request({
		url: '/admin/merchant/refund/order/refund/refuse',
		method: 'get',
		params,
	});
}

/**
 * 获取商户所有判责单
 * @param params
 */
export function getAfterSaleJudgeApi(params) {
	return request({
		url: '/admin/merchant/afterSale/get/judge/infos',
		method: 'get',
		params,
	});
}